package day017.lambda;

public class LambdaTest4 {
    public static void main(String[] args) {
        useCalculator((int a, int b) -> {
            return a + b;
        });
    }

    public static void useCalculator(Calculator calculator) {
        int calc = calculator.calc(10, 20);
        System.out.println(calc);
    }
}
